<!--
 * @Description: 兄弟选择器
 * @Author: charles
 * @Date: 2021-08-10 14:55:17
 * @LastEditors: charles
 * @LastEditTime: 2021-08-10 15:02:06
-->

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>兄弟选择器</title>
  <style>
    ul.rank {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    ul.rank > li:nth-child(2) + *{
      color: tomato;
    }
  </style>
</head>
<body>
  <ul class="rank">
    <li>html</li>
    <li>css</li>
    <li>js</li>
    <li>jquery</li>
    <li>bs</li>
  </ul>
</body>
</html>
